//
//  WJFowardVC.m
//  WJBSApp
//
//  Created by dllo on 16/7/22.
//  Copyright © 2016年 王景伟. All rights reserved.
//

#import "WJFowardVC.h"

@interface WJFowardVC ()

@property (nonatomic,retain) WJBaseView *firView;

@property (nonatomic,retain) WJBaseView *secView;

@property (nonatomic,retain) WJBaseView *thiView;

@property (nonatomic,retain) WJBaseView *forView;

@end

@implementation WJFowardVC



- (void)viewDidLoad {
    [super viewDidLoad];
    
    [self createView];
    
}


- (void)createView
{
    WJBaseView *view = [[WJBaseView alloc]initWithFrame:CGRectMake(0,  HEIGHT * 3 / 4, WIDTH, HEIGHT / 4)];
    view.backgroundColor = BSWhiteColor;
    [self.view addSubview:view];
    
    UILabel *lable = [[UILabel alloc]initWithFrame:CGRectMake(0, 10, WIDTH, 20)];
    lable.backgroundColor = BSClearColor;
    lable.textAlignment = 1;
    lable.text = @"分享给好友";
    [view addSubview:lable];
    
    
    
    
    // 创建 6个图片
    self.firView = [[WJBaseView alloc]initWithFrame:CGRectMake(WIDTH / 15, 35, WIDTH / 6, WIDTH / 6 + WIDTH / 15) imageName:@"Unknown-1.png" name:@"微信"];
    [view addSubview:_firView];
    
    self.secView = [[WJBaseView alloc]initWithFrame:CGRectMake(WIDTH * 2 / 15 + WIDTH / 6 , 35, WIDTH / 6, WIDTH / 6 + WIDTH / 15) imageName:@"Unknown-2.png" name:@"朋友圈"];
    [view addSubview:_secView];
    
    self.thiView = [[WJBaseView alloc]initWithFrame:CGRectMake(WIDTH  * 3 / 15 + WIDTH  * 2 / 6, 35, WIDTH / 6, WIDTH / 6 + WIDTH / 15) imageName:@"Unknown-3.png" name:@"QQ空间"];
    [view addSubview:_thiView];
    
    self.forView = [[WJBaseView alloc]initWithFrame:CGRectMake(WIDTH * 4 / 15 + WIDTH  * 3 / 6, 35, WIDTH  / 6, WIDTH / 6 + WIDTH / 15) imageName:@"Unknown.png" name:@"收藏"];
    [view addSubview:_forView];
}


- (void)touchesEnded:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event
{
    [super touchesEnded:touches withEvent:event];
    [self dismissViewControllerAnimated:YES completion:^{
        
        
    }];
}





















































































- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
}










@end
